<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/gymjsp/common/head.jsp"%>
<div class="right">
  <div class="location">
    <strong>你现在所在的位置是:</strong>
    <span>人事管理 >> 员工修改页面</span>
  </div>
  <div class="providerAdd">
    <form id="staffForm" name="salaryForm" method="post" action="${pageContext.request.contextPath }/gymjsp/personnel.do">
      <input type="hidden" name="method" value="modifyexe">
      <input type="hidden" name="pid" value="${personnel.id }"/>
      <div>
        <label for="personnelname">姓名：</label>
        <input type="text" name="personnelname" id="personnelname" value="${personnel.name }">
        <font color="red"></font>
      </div>
      <div>
        <label for="age">年龄：</label>
        <input type="number" name="age" id="age" value="${personnel.age}">
        <font color="red"></font>
      </div>
      <div>
        <label for="gender">性别：</label>
        <select  name="gender" id="gender">
          <option  value="男" ${personnel.gender == '男' ? 'selected' : ''}>男</option>
          <option  value="女" ${personnel.gender == '女' ? 'selected' : ''}>女</option>
        </select>
        <font color="red"></font>
      </div>
      <div>
        <label for="phone">手机号：</label>
        <input type="number" name="phone" id="phone" value="${personnel.phone}">
        <font color="red"></font>
      </div>
      <div>
        <label for="address">地址：</label>
        <input type="text" name="address" id="address" value="${personnel.address}">
        <font color="red"></font>
      </div>
      <div>
        <label for="position">职位：</label>
        <input type="text" name="position" id="position" value="${personnel.position}">
        <font color="red"></font>
      </div>
      <div class="providerAddBtn">
        <input type="button" name="save" id="save" value="保存" />
        <input type="button" id="back" name="back" value="返回"/>
      </div>
    </form>
  </div>
</div>
</section>
<%@include file="/gymjsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/staffmodify.js"></script>
